package com.admin.education.dataTransferObject.grades.Mapper;

import com.admin.education.dataTransferObject.grades.GradesTransfer;
import com.admin.education.dataTransferObject.grades.Request.CreateGradeRequest;
import com.admin.education.dataTransferObject.grades.Request.UpdateGradeRequest;
import com.admin.education.models.Grades;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper
public abstract class GradesMapper {
    @Mappings({})
    public abstract GradesTransfer mapFrom(Grades grades);
    @Mappings({})
    public abstract List<GradesTransfer> mapFrom(List<Grades> grades);
    @Mappings({})
    public abstract Grades mapFrom(CreateGradeRequest createGradeRequest);
    @Mappings({})
    public abstract Grades mapFrom(UpdateGradeRequest updateGradeRequest, @MappingTarget Grades grades);
}
